package com.zh.familyInfo.service.impl;

import com.zh.common.utils.StringUtil;
import org.apache.batik.transcoder.keys.StringKey;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.zh.familyInfo.dao.FamilyFamilyUserDao;
import com.zh.familyInfo.domain.FamilyFamilyUserDO;
import com.zh.familyInfo.service.FamilyFamilyUserService;



@Service
public class FamilyFamilyUserServiceImpl implements FamilyFamilyUserService {
	@Autowired
	private FamilyFamilyUserDao familyFamilyUserDao;
	
	@Override
	public FamilyFamilyUserDO get(String id){
		return familyFamilyUserDao.get(id);
	}
	
	@Override
	public List<FamilyFamilyUserDO> list(Map<String, Object> map){
		return familyFamilyUserDao.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return familyFamilyUserDao.count(map);
	}
	
	@Override
	public int save(FamilyFamilyUserDO familyFamilyUser){
//		设置主键id
		familyFamilyUser.setId(StringUtil.generalKeyword());
		return familyFamilyUserDao.save(familyFamilyUser);
	}
	
	@Override
	public int update(FamilyFamilyUserDO familyFamilyUser){
		return familyFamilyUserDao.update(familyFamilyUser);
	}
	
	@Override
	public int remove(String id){
		return familyFamilyUserDao.remove(id);
	}
	
	@Override
	public int batchRemove(String[] ids){
		return familyFamilyUserDao.batchRemove(ids);
	}
	
}
